<template>
    <div>
        Hello Word!
    </div>
</template>

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { userStore } from './store/userInfo';
import { log } from 'console';
const user = userStore()
user.$patch({
    "userName":"Tristan"
})
console.log(user.userName)
console.log(user.getUserName)

user.changeUserName(" 66666")
console.log(user.userName)
console.log(user.getUserName)

 const refUser = storeToRefs(user)
 console.log(refUser)
</script>

<style></style>